//
//  UITabBar+btn.m
//  体育
//
//  Created by liujianlong on 2022/10/26.
//

#import "UITabBar+btn.h"

@implementation UITabBar (btn)
//修复超出tabbar无法点击的问题

- (void)setBtn:(UIButton*)btn{
    objc_setAssociatedObject(self, @selector(btn), btn, OBJC_ASSOCIATION_RETAIN_NONATOMIC);
}

- (UIButton*)btn{
    return objc_getAssociatedObject(self, _cmd);
}

//
//- (UIView*)hitTest:(CGPoint)point withEvent:(UIEvent*)event{
//    CGPoint hitPoint = [self convertPoint:point toView:self.btn];
//    if ([self.btn pointInside:hitPoint withEvent:event]) {
//        return self.btn;
//    } else {
//        return [super hitTest:point withEvent:event];
//    }
//}
@end
